import {createPinia} from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
//通过createPinia函数来实例化pinia对象
const pinia=createPinia()
//将piniaPluginPersist设置为pinia的插件
pinia.use(piniaPluginPersist)
//导出pinia对象
export default pinia